package apiday02;

public class StringBuilderDemo {
    public static void main(String[] args) {
        StringBuilder buf = new StringBuilder();
        long t1 = System.currentTimeMillis();
        for (int i =0;i<50000;i++){
            buf.append("A")
                    .append("a")
                    .append("c")
                    .append("c")
                    .append(132)
                    .append(false)

                    .insert(1,"c");

        }
        long t2 = System.currentTimeMillis();
        System.out.println(t2-t1);

    }
}
